/**
 * Created by yyccb on 2016-8-8.
 */
/**
 * private Integer id;
 * private String mobileNo;
 * private String username;
 * private Integer isReg;
 * private Date regDate;
 * private Integer isRealname;
 * private Integer isTieCard;
 * private Integer isTrans;
 * private String scanCodeRec;
 * private Date rebateExpireDate;
 * private Date createTs;
 * private Date updateTs;
 */
$(function () {
    //DataGrid 数据表格
    $('#etxUser').edatagrid({
        url: '/rest/extUser/list',
        saveUrl: "",
        updateUrl: "",
        destroyUrl: "",
        fit: true,
        fitColumns: true,
        striped: true,
        rownumbers: true,
        idField : 'id',
        singleSelect : true,
        border: false,
        pagination: true,
        pageSize: 20,
        pageList: [10, 20, 30, 40, 50],
        pageNumber: 1,
        sortName: 'mobileNo',
        sortOrder: 'desc',
        toolbar: '#etxUser_tool',
        columns: [[
            {
                field: 'id',
                title: '自动编号',
                width: 50,
                checkbox: true,
            },
            {
                field: 'mobileNo',
                title: '手机号',
                width: 100,
            },
            {
                field: 'username',
                title: '客户姓名',
                width: 100,
            },
            {
                field: 'isReg',
                title: '是否注册',
                width: 50,
            },
            {
                field: 'regDate',
                title: '注册日期',
                width: 100,
            },
            {
                field: 'isRealname',
                title: '是否实名',
                width: 50,
            },
            {
                field: 'isTieCard',
                title: '是否绑卡',
                width: 50,
            },
            {
                field: 'isTrans',
                title: '是否交易过',
                width: 50,
            },
            {
                field: 'scanCodeRec',
                title: '扫码推荐人',
                width: 70,
            },
            {
                field: 'rebateExpireDate',
                title: '返利失效日期',
                width: 100,
            },
            {
                field: 'createTs',
                title: '创建日期',
                width: 100,
            },
            {
                field: 'updateTs',
                title: '更新日期',
                width: 100,
            },

        ]],
    });

});
